import request from "@/utils/request.js"

const API = {
    PRODUCTTYPELIST_URL: '/product/type/list',//商品分类列表
    PRODUCTTYPEADDEDIT_URL: '/product/type/add',//商品分类添加
    PRODUCTTYPEDELETE_URL: '/product/type/delete',//商品分类删除
    // PRODUCT_DETAIL_URL: '/product/type/detail',//商品分类详情
    PRODUCTLIST_URL: '/product/list',//商品列表
    PRODUCTADDEDIT_URL: '/product/add',//新增编辑商品
    PRODUCTEDELETE_URL: '/product/delete',//删除商品

}
export const getProductTypeList = values => request.post(API.PRODUCTTYPELIST_URL, values);
export const productTypeAddEdit = values => request.post(API.PRODUCTTYPEADDEDIT_URL, values);
export const productTypeDelete = values => request.post(API.PRODUCTTYPEDELETE_URL, values);
export const productList = values => request.post(API.PRODUCTLIST_URL, values);
export const productAddEdit = values => request.post(API.PRODUCTADDEDIT_URL, values);
export const productDelete = values => request.post(API.PRODUCTEDELETE_URL, values);